{if $errors}
	$.growl.settings.noticeElement($('.growl-error-container'));
	{if in_array('TITLE', $errors)}
		$.growl('ERROR', 'Title must be specified.');
		$.growl.settings.displayTimeout+=2000;
	{/if}
{/if}

{if $success}
	jstree.selected.find('a:first').html('{$folder.title|escape:"javascript":"UTF-8"}');
{/if}